package com.liyuan.help_e.dao;

import com.liyuan.help_e.model.Category;
import com.liyuan.help_e.model.Tags;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TagDao {
    @Select("select * from category")
    Category[] selectCategories();

    @Select("select * from tags where name = #{nameId}")
    Tags[] selectTagsByName(Integer nameId);
}
